package com.leo.springbootmultithreadbasic.lock.reentrantlock.basicdemo.demo2;

/**
 * @author Leo
 */
public class MyThreadA extends Thread {
    private MySerivce mySerivce;

    public MyThreadA(MySerivce mySerivce) {
        super();
        this.mySerivce = mySerivce;
    }

    @Override
    public void run() {
        mySerivce.methodA();
    }
}
